public  class TernaryOperator {
	public static void main(String[] args) {
		int a = 6;
		int b = 66;
		int result = a > b ? a++ : b--;
		System.out.println(b);
		System.out.println(a);
		System.out.println(result);
		int c = a < b ?(int)2.3 : (int)6.1;
		System.out.println(c);
		double d = a > b ? a + 1 : b + 3;
		System.out.println(d);
	}
}